package org.embedchat.server;

public class Utils {

	public static final String ZERO_ONE = "0";
	public static final String ZERO_TWO = "00";
	public static final String ZERO_THRE = "000";
	
	private Utils() {
	}
	
    public static String getMessageLengthString(int messageLength) {
    	if (messageLength < 10) {
    		return ZERO_THRE + messageLength;
    	}
    	if (messageLength < 100) {
    		return ZERO_TWO + messageLength;
    	}
    	if (messageLength < 100) {
    		return ZERO_ONE + messageLength;
    	}
    	return String.valueOf(messageLength);
    }
}
